package cn.itsource.pet.controller;

import cn.itsource.basic.util.JsonResult;
import cn.itsource.org.domain.Shop;
import cn.itsource.org.query.ShopQuery;
import cn.itsource.org.service.IShopService;
import cn.itsource.pet.service.IPetTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * department控制层
 */
@RestController
@RequestMapping("/petType")
@Api(tags = "宠物类型管理")
public class PetTypeController {

    @Autowired
    private IPetTypeService petTypeService;
    @GetMapping("/tree")
    public JsonResult petTypeTree(){
        return petTypeService.petTypeTree();

    }

}





